
  var rules=document.getElementById("ruleType").options.length;
  var ruleArray=new Array(rules);
  for (i=0; i<rules; i++) { 
    ruleArray[i]=new Array()}
    ruleArray[0][0]=new Option("包含","1");      
    ruleArray[0][1]=new Option("不包含","2");      
    ruleArray[1][0]=new Option("大于","1");
    ruleArray[1][1]=new Option("小于","2"); 
    ruleArray[1][2]=new Option("大于等于","3");      
    ruleArray[1][3]=new Option("小于等于","4");      
    ruleArray[2][0]=new Option("大于","1");
    ruleArray[2][1]=new Option("小于","2"); 
    ruleArray[2][2]=new Option("大于等于","3");      
    ruleArray[2][3]=new Option("小于等于","4");        
    ruleArray[3][0]=new Option("大于","1");
    ruleArray[3][1]=new Option("小于","2"); 
    ruleArray[3][2]=new Option("大于等于","3");      
    ruleArray[3][3]=new Option("小于等于","4");   
    
    temp = document.getElementById("selectRule1");
    
    function redirect(x)
{
  for (m=temp.options.length-1;m>0;m--)
    temp.options[m]=null;
  for (i=0;i<ruleArray[x].length;i++)
  {
    temp.options[i]=new Option(ruleArray[x][i].text,ruleArray[x][i].value);
  }      
  temp.options[0].selected=true;
  if(x==0)document.getElementById("unitSpan").innerHTML=" *";
  else document.getElementById("unitSpan").innerHTML="KB *";
}      